import request from '../utils/request';

// 查询密码列表
export function listPassword(query) {
  return request({
    url: '/bdmap/bdmap/list',
    method: 'get',
    params: query
  });
}

// 查询密码详细
export function getPassword(id) {
  return request({
    url: '/bdmap/bdmap/' + id,
    method: 'get'
  });
}

// 新增密码
export function addPassword(data) {
  return request({
    url: '/bdmap/bdmap',
    method: 'post',
    data: data
  });
}

// 修改密码
export function updatePassword(data) {
  return request({
    url: '/bdmap/bdmap',
    method: 'put',
    data: data
  });
}

// 删除密码
export function delPassword(ids) {
  return request({
    url: '/bdmap/bdmap/' + ids,
    method: 'delete'
  });
}

// 导出密码
export function exportPassword(query) {
  return request({
    url: '/bdmap/bdmap/export',
    method: 'get',
    params: query
  });
}
